import time


def metric(fn):
    def jilu_time(*args, **kwargs):
        start_time = time.time()
        re = fn(*args, **kwargs)
        end_time = time.time()
        print('耗时：{:.10f}s,开始为{},结束为{}'.format(end_time-start_time,start_time,end_time))
        return re

    return jilu_time
